package cn.alcatraz.system.mapper;

import cn.alcatraz.system.domain.Permission;
import cn.alcatraz.basic.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author alcatraz
 * @since 2022-07-11
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    //根据sn查询权限数据
    Permission loadBySn(String permissionSn);

    //根据logininfoId查询用户的所有权限编码
    List<String> loadOwnerPermissionByLogininfoId(Long logininfoId);
}
